var Icon = new ol.style.Icon({
  anchor: [0.5, 60],
  anchorOrigin: "top-right",
  anchorXUnits: "fraction",
  anchorYUnits: "pixels",
  offsetOrigin: "top-right",
  // offset:[0,10],
  //图标缩放比例
  // scale:0.5,
  //透明度
  opacity: 0.75,
  //图标的url
  src: "./blueIcon.png",
});

var Txt = new ol.style.Text({
  textAlign: "center",
  textBaseline: "middle",
  font: "normal 14px 微软雅黑",
  text: "武汉",
  fill: new ol.style.Fill({
    color: "#aa3300",
  }),
  stroke: new ol.style.Stroke({
    color: "#ffcc33",
    width: 2,
  }),
});

var Icon_Txt = new ol.style.Style({
  image: Icon,
  text: Txt,
});
